﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace UpLoad
{
    public class GeneralUpLoad : UpLoadBase
    {
        /// <summary>
        /// 重写子类的save方法
        /// </summary>
        /// <param name="uploadfile"></param>
        /// <returns></returns>
        public override ReturnModel  SaveFile(System.Web.UI.WebControls.FileUpload uploadfile)
        {
            return base.SaveFile(uploadfile);
        }

        /// <summary>
        /// 获取完整文件名称
        /// </summary>
        /// <param name="filename"></param>
        /// <returns></returns>
        public override string GetServerPath(string filename)
        {
            return base.GetServerPath(filename);
        }

        /// <summary>
        /// 删除文件
        /// </summary>
        /// <param name="filename"></param>
        /// <returns></returns>
        public override bool DeleteRecord(string filename)
        {
            return base.DeleteRecord(filename);
        }

        /// <summary>
        /// 修改文件
        /// </summary>
        /// <param name="fileupload"></param>
        /// <param name="filename"></param>
        /// <returns></returns>
        public override ReturnModel UpdateFile(System.Web.UI.WebControls.FileUpload fileupload, string filename)
        {
            return base.UpdateFile(fileupload, filename);
        }
    }
}
